package com.dawn.module.hospital.controller.app.medicalcopy.vo;

import com.dawn.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static com.dawn.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "病案复印 APP - 病案复印分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AppMedicalCopyPageReqVO extends PageParam {

    @Schema(description = "ID")
    private Long id;

    private String ui;

    @Schema(description = "userId")
    private String userId;

    @Schema(description = "openid")
    private String openid;

    @Schema(description = "机构ID", example = "11659")
    private String orgId;

    @Schema(description = "机构名称", example = "李四")
    private String orgName;

    @Schema(description = "机构编码")
    private String orgCode;

    @Schema(description = "申请单号")
    private String applyNo;

    @Schema(description = "主页ID", example = "21984")
    private String homepageId;

    @Schema(description = "出院日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] leaveHospitalDate;

    @Schema(description = "出院科室")
    private String leaveHospitalDept;

    @Schema(description = "出院证明")
    private String leaveHospitalCertificate;

    @Schema(description = "住院号")
    private String hospitalNo;

    @Schema(description = "病案类型", example = "2")
    private String medicalType;

    @Schema(description = "用途")
    private String purpose;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "申请人与病人关系")
    private String relation;

    @Schema(description = "病人ID", example = "22079")
    private String patientId;

    @Schema(description = "病人类型", example = "2")
    private String patientType;

    @Schema(description = "病人姓名", example = "张三")
    private String patientName;

    @Schema(description = "病人证件号")
    private String patientCardNo;

    @Schema(description = "病人身份证人像面")
    private String patientCardImgFront;

    @Schema(description = "病人身份证国徽面")
    private String patientCardImgReverse;

    @Schema(description = "申请人姓名", example = "赵六")
    private String applicantName;

    @Schema(description = "申请人证件号")
    private String applicantCardNo;

    @Schema(description = "申请人身份证人像面")
    private String applicantCardImgFront;

    @Schema(description = "申请人身份证国徽面")
    private String applicantCardImgReverse;

    @Schema(description = "其他文件")
    private String otherFile;

    @Schema(description = "收取方式", example = "1")
    private String collectType;

    @Schema(description = "收件人姓名", example = "芋艿")
    private String recipientName;

    @Schema(description = "收件人电话")
    private String recipientPhone;

    @Schema(description = "收件人地址")
    private String recipientAddress;

    @Schema(description = "快递公司ID", example = "32434")
    private String deliveryId;

    @Schema(description = "快递公司", example = "王五")
    private String deliveryName;

    @Schema(description = "快递单号")
    private String deliveryNo;

    @Schema(description = "支付订单号")
    private String orderNumber;

    @Schema(description = "渠道订单号")
    private String thirdOrderNo;

    @Schema(description = "订单金额", example = "32098")
    private BigDecimal totalPrice;

    @Schema(description = "病案费用", example = "17570")
    private BigDecimal medicalPrice;

    @Schema(description = "打印费用", example = "17250")
    private BigDecimal printPrice;

    @Schema(description = "邮寄费用", example = "18359")
    private BigDecimal postagePrice;

    @Schema(description = "服务费用", example = "25369")
    private BigDecimal servicePrice;

    @Schema(description = "其他费用", example = "13656")
    private BigDecimal otherPrice;

    @Schema(description = "0 未支付 1 支付成功 2 已退款 3 申请退款", example = "1")
    private Integer payStatus;

    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] payTime;

    @Schema(description = "支付方式", example = "1")
    private String payType;

    @Schema(description = "退款订单号")
    private String refundNumber;

    @Schema(description = "退款金额", example = "29314")
    private BigDecimal refundPrice;

    @Schema(description = "退款时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] refundTime;

    @Schema(description = "退款原因", example = "不喜欢")
    private String refundReason;

    @Schema(description = "审核意见")
    private String examine;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "病人身份证手持照")
    private String patientCardImgHandheld;

    @Schema(description = "申请人身份证手持照")
    private String applicantCardImgHandheld;

}